package com.xyx.yfy_site_msg.system.service.impl;

import com.xyx.yfy_site_msg.system.entity.YfySystem;
import com.xyx.yfy_site_msg.system.mapper.YfySystemMapper;
import com.xyx.yfy_site_msg.system.service.YfySystemService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author xyx
 * @since 2020-11-19
 */
@Service
@Transactional
public class YfySystemServiceImpl extends ServiceImpl<YfySystemMapper, YfySystem> implements YfySystemService {
    
    @Override
    public String loadDeploymentById(@Param("deploymentid")String deploymentid) {
        return this.getBaseMapper().loadDeploymentById(deploymentid);
    }

    @Override
    public String loadSourceOfCustomerById(@Param("sourceofcustomerid") String sourceofcustomerid) {
        return this.getBaseMapper().loadSourceOfCustomerById(sourceofcustomerid);
    }

    @Override
    public String loadAddressById(@Param("addressid") String addressid) {
        return this.getBaseMapper().loadAddressById(addressid);
    }
    
    @Override
    public List<YfySystem> loadCityByAddressId(Integer addressid) {
        return this.getBaseMapper().loadCityByAddressId(addressid);
    }
}
